package com.moran.beetlsql.common;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.jdbc.core.JdbcTemplate;

/**
 * @Description
 * @Author wnf
 * @Date 2025-07-10
 */
public class BaseDao {

    @Autowired
    @Qualifier("mainJdbcTemplate")
    private JdbcTemplate jdbcTemplateMain;

    @Autowired
    @Qualifier("subJdbcTemplate")
    private JdbcTemplate jdbcTemplateSub;
    @Autowired
    @Qualifier("subJdbcTemplate")
    private JdbcTemplate jdbcTemplateTest;

    public JdbcTemplate getJdbcTemplateMain() {
        return jdbcTemplateMain;
    }

    public JdbcTemplate getJdbcTemplateSub() {
        return jdbcTemplateSub;
    }

    public JdbcTemplate getJdbcTemplateTest() {
        return jdbcTemplateTest;
    }
}
